package org.idea.qiyu.framework.rocketmq.annotation;

import org.idea.qiyu.framework.rocketmq.config.serializer.FastJsonSerializer;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @Author linhao
 * @Date created in 9:08 上午 2021/6/30
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface QiyuProducer {

    String topic() default "";

    String tag() default "*";

    Class serializer() default FastJsonSerializer.class;
}
